package eip.chapter3.pointtopoint.impl;

import org.apache.log4j.Logger;

import eip.chapter3.pointtopoint.HotelBooking;
import eip.chapter3.pointtopoint.RegistrationService;

public class RegistrationServiceImpl implements RegistrationService {
	
	private final static Logger logger = Logger.getLogger(RegistrationServiceImpl.class);
	private String name;
	
	
	public void processHotelBooking(HotelBooking booking) {
		logger.info(name + " received booking: " + booking);	
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
